package distributed.lock.redis;

import java.util.concurrent.TimeUnit;

public interface RedisHandleAdapter{

    boolean supports(Object handler);

    // Object handler 类型是为了兼容 不同的 handler 类型
    boolean setnx(String key, String value, long time, TimeUnit timeUnit, Object handler);

    boolean comparAndDel(String key, String value, Object handler);

}
